import httpInstance from '@/utils/http.js'

export function login ({phone_number,phone_code}) {
  return httpInstance({
    url: `/api/user/login/`,
    method:'POST',
    data:{
      phone_number,
      phone_code
    },
  })
}

export function getCode (phone_number) {
  return httpInstance({
    url: "/api/user/login/?phone_number="+phone_number,
  })
}
/* import axios from "~/axios";

//登录信息
export function login(phone_number,phone_code){  
  return axios.post("/api/user/login/",{
    phone_number,
    phone_code
  })
}

export function getCode(phone_number){  
  return axios.get("/api/user/login/?phone_number="+phone_number)
}

//获取信息
export function getinfo(){  
  return axios.get("/api/user/info/")
}

//退出登录
export function logout(){  
  return axios.post("暂无")
} */

